package com.gmail.bogatyr.alexander.client.view;

import com.gmail.bogatyr.alexander.client.presenter.TelephoneBookDisplayPresenter;
import com.gmail.bogatyr.alexander.client.presenter.TelephoneBookListPresenter;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.*;

public class TelephoneBookDisplayWidget extends Composite implements TelephoneBookDisplayPresenter.Display {

    private final Panel panel;
    private final Label titleLabel;
    private final Label numberLabel;
    private final Label nameLabel;
    private final Button editButton;
    private final Button deleteButton;
    private final Button backButton;

    public TelephoneBookDisplayWidget() {
        panel = new FlowPanel();
        initWidget(panel);
        
        titleLabel = new Label();
        panel.add(titleLabel);
        
        numberLabel = new Label();
        panel.add(numberLabel);
        
        nameLabel = new Label();
        panel.add(nameLabel);
        
        editButton = new Button();
        panel.add(editButton);

        deleteButton = new Button();
        panel.add(deleteButton);

        backButton = new Button();
        panel.add(backButton);
    }

    @Override
    public Label getTitleLabel() {
        return titleLabel;
    }

    @Override
    public Label getNumberLabel() {
        return numberLabel;
    }

    @Override
    public Label getNameLabel() {
        return nameLabel;
    }

    @Override
    public HasClickHandlers getEditButton() {
        return null;
    }

    @Override
    public HasClickHandlers getDeleteButton() {
        return null;
    }

    @Override
    public HasClickHandlers getBackButton() {
        return null;
    }
}
